package com.mentalhealthplatform;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;


/**
 * @author 22221
 */
@SpringBootApplication
@EnableJpaRepositories(basePackages = {
		"com.mentalhealthplatform.global.rbac.repository",
		"com.mentalhealthplatform.global.log.login",
		"com.mentalhealthplatform.global.log.manager",
		"com.mentalhealthplatform.studentV3.repository",
		"com.mentalhealthplatform.schoolV1.repository",
		"com.mentalhealthplatform.teacherV2.repository",
		"com.mentalhealthplatform.studentV3.ai.message",
		"com.mentalhealthplatform.studentV3.ai.session"
})
@EnableElasticsearchRepositories(basePackages = {
		"com.mentalhealthplatform.global.elasticsearch"
})

public class StudentMindHubApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {

		SpringApplication.run(StudentMindHubApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(StudentMindHubApplication.class);
	}

}
